// api.js数据接口
// import axios from 'axios'
import {request} from '../utils/request'
// 查询
export function request1 (self, query) {
    console.log(query)
	return request(self, {
        url: '/sensor_request',
        headers: { 'requestType': 'json' },
        method: 'POST',
        data: query
    })
}
// 奖励
export function reward (self, query) {
    console.log(query)
	return request(self, {
        url: '/sensor_reward',
        headers: { 'requestType': 'json' },
        method: 'POST',
        data: query
    })
}
// 惩罚
export function punishment (self, query) {
    console.log(query)
    return request(self, {
        url: '/sensor_punishment',
        headers: { 'requestType': 'json' },
        method: 'POST',
        data: query
    })
}
